//导入express和题库的业务逻辑处理的模块

const express = require('express');
const T_questionRouter = require('../router_handler/T_question');

const router = express.Router()

//通过科目id查询题库信息
router.get('/exam/T_question/list', T_questionRouter.getAllT_question)
//通过id来查询题目信息
router.get('/exam/T_question/info/:id', T_questionRouter.getT_questionById)
//通过id来查询答案内容
router.get('/exam/T_answer/info/:id', T_questionRouter.getT_answerById)
//更新题目
router.put('/exam/T_question/update/:id', T_questionRouter.updatet_question)
//插入题目
router.post('/exam/T_question/add', T_questionRouter.createt_question)
//删除题目
router.delete('/exam/T_question/delete/:id', T_questionRouter.deleteT_questionById)
//用文件的形式批量插入题库（修改中）
router.post('/exam/T_question/adds', T_questionRouter.batchImport)
//通过科目来查询题目信息（这个已经不需要了）
router.get('/exam/T_question/subject', T_questionRouter.getT_questionBySubject)
//题型类型统计
router.get('/exam/T_question/getnumQuestionType', T_questionRouter.getnumQuestionType)
//题型难度统计
router.get('/exam/T_question/getdifficultyQuestionType', T_questionRouter.getdifficultyQuestionType)
//题型biaoqian统计
router.get('/exam/T_question/getlabelQuestionType', T_questionRouter.getlabelQuestionType)
//题型创建时间统计
router.get('/exam/T_question/getcreatedAtQuestionType', T_questionRouter.getcreatedAtQuestionType)
//题型知识点
router.get('/exam/T_question/getlabelQuestionType1', T_questionRouter.getlabelQuestionType1)
//难度知识点
router.get('/exam/T_question/getlabelQuestiondifficulty', T_questionRouter.getlabelQuestiondifficulty)
//题型难度
router.get('/exam/T_question/getlabelQuestiondifficulty1', T_questionRouter.getlabelQuestiondifficulty1)
//导出
module.exports = router